<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:pn="http://pnengine.org/scheme" xmlns:x="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <head>
    <title><%= @transition.name %></title>
    <%=css_include_tag :transition, :layout, :xforms %>
    <%=js_include_tag :prototype, :transition, :xforms_check %>
    <%=partial :xmodel %>
  </head>
  <body>
    <div id='titleHead'>
      <h1><%= @transition.name || @transition.id %><%= " #" + @transition.id.to_s + " " unless  @transition.name != "noname" %><%= " (" + @transition.action + ")" unless @transition.action.nil? %></h1>
    </div>
    
    <div class='container'>
      <%=partial :output_form %>
    </div>
	
	<!--fast hack: can be used to hide submit trigger: <span id="hide-submit-trigger" />*/-->
	<script type="text/javascript">
		if($('hide-submit-trigger'))
			$('submit-trigger').parentNode.removeChild($('submit-trigger'));
	</script>
  </body>
</html>
